<?php
include "includeFiles.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $C['Title'];?></title>
<Link href="../uploadfile/ico/<?php echo $C['ICO'];?>" rel="Shortcut Icon">
<meta name="Keywords" content="<?php echo $C['Keywords'];?>">
<meta name="description" content="<?php echo $C['Description'];?>">
<Meta name="Copyright" Content="<?php echo $C['CopyRight'];?>">
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link charset="utf-8" rel="stylesheet" href="css/alipay.css">
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="jquery-1.8.3.min.js"></script>
<script type="text/javascript">
<!--

$(document).ready(function(){
	//$(".mh_zx_ct:gt(0)").hide();
	var opt=$(".mh_zx_box ul li");
	opt.hover(function(){
		//alert($(this));
		$(this).addClass('one').siblings().removeClass('one');
		var opt_index=opt.index(this);
		$(".mh_zx_ct").eq(opt_index).show().siblings().hide();
	});
	$(".nav_green").mouseover(function(){
		$("#nav_more").show();
	}).mouseout(function(){
		var timer=window.setTimeout(function(){
			$("#nav_more").hide();	
		},1000)
		$(".nav_green li").mouseover(function(){
			window.clearTimeout(timer);
			//$("#nav_more").show();
		})
	})
	$(".nav_green li").mouseout(function(){
		$("#nav_more").hide();	
	})

});
//-->
</script> 
</head>
<body id="mainbody">
<!--头部登录-->
<div class="log_top">
	<div style="width:980px;height:38px;text-align:right;margin:auto">
    	<? if(isset($_SESSION['user_name'])){ echo "欢迎,".$_SESSION['user_name']; 
echo "&nbsp;<a href=\"?action=exit\">安全退出</a>  |<a href='member.php?cityid=$cityid'> 我的账户 </a>";
} else {?><a href="login.php">会员登录</a> | <a href="reg.php">免费注册</a>
<? } ?>
    </div>
</div>
<!--#头部登录-->

<!--头部导航-->
<div class="head">
  <div class="logo"><img src="images/logo.jpg" /></div>
  <div class="d35 bg2">
	<div class="w726 mauto">
	<ul class="nav1">
    	<li><a href="index.php" class="c1">首页</a></li>
    </ul>
   <div class="f_r w295 h28 mt5">
    	<div style="width:218px;height:28px;float:left; background:url(images/cart.png);line-height:28px; text-indent:50px">购物车里有<a href="cart.php?cityid=<?=$cityid?>"><? echo  $info->getCartNum();?></a>件商品</div>
        <a href="cart.php?cityid=<?=$cityid?>"><img src="images/go_shop.jpg" /></a>
    </div>
    </div>
</div>
</div>

<!--#头部导航-->
<!--#头部导航-->

<!--主体布局-->
<div class="main">
  <div class="Hy">
      <?php include_once('member_left.php');?>
  <?php $memermsg =  $info->memberMsg();?>
 <div class="HyRight">
  <div class="ContentRight">
    <div class="dn">
     <div class="nr">
       欢迎回来！尊敬的客户
     </div>
     <div class="nc">
      <img src="images/nr_pic.png" />账户可使用余额：<?=$memermsg['money']?><a href="#"><img src="images/nc_pic.png" /></a>
     </div>
  </div>
  <div class="fn3"></div>
  <form id="formpersonal" method="POST" onsubmit="return checkContent(this);">
<div style="margin:20px;">

 <input name="action" type="hidden" value="addcj"   />
  <input name="czfs" type="hidden" value="<?=$_POST['czfs']?>" />
    <input name="czbank" type="hidden" value="<?=$_POST['czbank']?>" />
		<table width="100%" style="table-layout:fixed;">
			<tr>
				<td class="need" style="width:10px;">*</td>
				<td style="width:100px;">姓名：</td>
				<td style="width:305px;"><input type="text" value="" name="name" class="inputxt" datatype="mz" ajaxurl="valid.php" nullmsg="请输入姓名！" errormsg="昵称至少6个字符,最多18个字符！" /></td>
				<td><div class="Validform_checktip"></div></td>
			</tr>
			
			<tr>
			  <td class="need">*</td>
			  <td>银行账户：</td>
			  <td><!--<select name="hkzh" id="hkzh" datatype="select" errormsg="请选择银行！" >
			    <option value="">--请选择银行--</option>
			    <option value="1">中国银行</option>
			    </select>-->
                <input name="hkzh" type="text" />
                </td>
			  <td><div class="Validform_checktip"></div></td>
			  </tr>
			<tr>
			  <td class="need">*</td>
			  <td>银行所在省：</td>
			  <td>
              <select name="s_city" id="s_city">
           <option value=''>
	       请选择
	      </option>
		    <?php	
		$SQL=" select * from hy_b_city where ParentID =1 ";
		$objDb->query($SQL);
		$result = $objDb->get_data();
		if($result){
		foreach($result as $key=>$value){
	 ?>
		    <option value="<?=$value['CityID']?>" >
		      <?=$value['CateName']?>
	        </option>
		    <? }}?>
	      </select>
		   
              
              </td>
			  <td><div class="Validform_checktip"></div></td>
			  </tr>
			<tr>
			  <td class="need">*</td>
			  <td>银行所在市：</td>
			  <td><select name="s_county" id="s_county">
	    
	    <option value=''>
	       请选择
	      </option>
	    
      </select>
          </td>
			  <td><div class="Validform_checktip"></div></td>
			  </tr>
              
               <script>
          
$('#s_city').change( function () { 
		$.ajax({
		   type: "get",
		   url: "selectcity.php",
		   data: "pid="+this.value,
		   success: function(msg){
			  // alert(msg);
			    $('#s_county').html(msg);
		   }
		});
});


          </script>
			<tr>
				<td class="need">*</td>
				<td>银行支行：</td>
				<td><input type="text" value="" name="zhihan" class="inputxt" datatype="i" errormsg="请输入信息！"  /></td>
				<td><div class="Validform_checktip"></div></td>
			</tr>
			<tr>
				<td class="need">*</td>
				<td>存款金额：</td>
				<td><input type="text" name="price" class="inputxt" datatype="yhk" errormsg="请输入信息！" value="<?=$_POST['price'];?>"  /></td>
				<td><div class="Validform_checktip"></div></td>
			</tr>
            <tr>
				<td class="need">*</td>
				<td>存款时间：</td>
				<td><input type="text" value="" name="cksj" class="inputxt" datatype="yhk" errormsg="请输入信息！"  /> 例如：2012.10.08 12：35</td>
				<td><div class="Validform_checktip"></div></td>
			</tr>
            <tr>
			  <td class="need">*</td>
			  <td>汇入我司银行账号：</td>
			  <td><label for="select"></label>
              <select name="bank" id="bank">
                <option value="工行622****7888">工行622****7888</option>
                <option value="建61****1313">建61****1313</option>
                <option value="农行6232****32323">农行6232****32323</option>
              </select></td>
			  <td><div class="Validform_checktip"></div></td>
			  </tr>
            
            <tr>
               <td class="need">*</td>
				<td>验证码：</td>
				<td><input type="text" id="authcode" style="ime-mode:disabled" name="authcode" 
                       tabindex="5" autocomplete="off" MaxLength="6"/><a href="#" onclick="this.firstChild.src='./admin/seccode.php?update=' + Math.random();return false;"><img align="absmiddle" id="authcodepic" src="./admin/seccode.php?update=<?php echo time(); ?>" border="0" /></a><br/>
               &nbsp;看不清？<a href="javascript:;" onclick="changeAuthcode();">换一张</a>
                <script>
			     function changeAuthcode(){
				    var newsrc = './admin/seccode.php?update=' + Math.random();
				    var a=  $('#authcodepic').attr('src',newsrc);
					return false;
				 }
			  </script> </td>
				<td><div class="Validform_checktip"></div></td>
            </tr>
            
		</table>
	
</div>

<script type="text/javascript">
$(function(){
	//$(".registerform").Validform();  //就这一行代码！下面是演示两种不同的验证效果;
	
	//提示效果一;
	$(".registerform:first").Validform();
	
	//提示效果二;
	$(".registerform:last").Validform({
		tiptype:2,
		ajaxPost:true,
		callback:function(data){
			//返回数据data是json格式，{"info":"demo info","status":"y"}
			//info: 输出提示信息;
			//status: 返回提交数据的状态,是否提交成功。如可以用"y"表示提交成功，"n"表示提交失败，在ajax_post.php文件返回数据里自定字符，主要用在callback函数里根据该值执行相应的回调操作;
			//你也可以在ajax_post.php文件返回更多信息在这里获取，进行相应操作；
			
			//这里执行回调操作;
			if(data.status=="y"){
				setTimeout(function(){
					$.Hidemsg(); //公用方法关闭信息提示框;
				},2000);
			}
		}
	});
		
	//调取公用方法显示信息提示框，可用于全站统一的弹出框提示效果;
	//$.Showmsg("Test Info here!");  //公用方法显示信息提示框;
})
</script> 
<div class="tj"><div style=" width:204px; margin:0 auto;"><input type="image"  src="images/tj.jpg" /></div></div>
</form>

 </div>
 
</div>
<div class="gehang"></div>

  <div style="width:980px;height:100%;overflow:hidden;margin-top:10px">
  <img src="images/copy_line.jpg" /><br /><br /><br />
        <img src="images/copy.jpg" />
        <?php include_once('help.php');?>
  </div>
        <img src="images/copy_line.jpg" />
</div>
    </div>
<!--#主体布局-->

<div class="clear"></div>
   <?php include_once('footer.php');?>
</body>
</html>
